﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using System.Collections;

namespace Aj.Core
{
    public class ScriptDictionary : ListDictionary
    {
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<script type=\"text/javascript\">");
            foreach (DictionaryEntry a in this)
            {
                sb.Append(a.Value);
            }
            sb.Append("</script>");
            sb = sb.Replace('\n', ' ');
            return sb.ToString();
        }
    }
}
